<!DOCTYPE HTML PUBLIC "-//W3C//DTD html 4.01//EN"
	  "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <base href="{{ base_url }}" />
  <style type="text/css">
    {% include "navigation.css" %}
  </style>
  <script type="text/javascript">
    var user_state = "{{ user_state }}";
    var user_email = "{{ user_email }}";
    {% include "navigation.js" %}
  </script>
</head>
<body onLoad="InitializeNav()">
<a href="/" target="_top">
	<h1 id="banner">Rwanda Education Commons</h1>
</a>
<ul id="nav_root">
	<li><a href="/" title="REC Homepage" target="_top">Home</a></li>
	<li><a href="about" title="About the REC" target="_top">About Us</a>
		<ul>
		<li><a href="about" title="About the REC" target="_top">About Us</a>
		<li><a href="about/partners" target="_top">Partners</a></li>
		<li><a href="about/terms" target="_top">Terms and Conditions</a></li>
		<li><a href="about/contact" target="_top">Contact Us</a></li>
		</ul>
	</li>
	<li><a href="teachers" title="REC Teachers Homepage" target="_top">Teachers</a>
		<ul>
		<li><a href="teachers" title="REC Teachers Homepage" target="_top">Home</a></li>
		<li><a href="teachers/discussions" target="_top">Discussions</a></li>
		<li><a href="teachers/library" target="_top">Library</a></li>
		</ul>
	</li>
	<li><a href="parents" title="REC Parents Homepage" target="_top">Parents</a>
		<ul>
		<li><a href="parents" title="REC Parents Homepage" target="_top">Home</a></li>
		<li><a href="parents/discussions" target="_top">Discussions</a></li>
		<li><a href="parents/library" target="_top">Library</a></li>
		</ul>
	</li>
	<li><a href="learners" title="REC Learners Homepage" target="_top">Learners</a>
		<ul>
		<li><a href="learners" title="REC Learners Homepage" target="_top">Home</a></li>
		<li><a href="learners/library" target="_top">Library</a></li>
		</ul>
	</li>
	<li><a href="policymakers" title="REC Policymakers Homepage" target="_top">Policymakers</a>
		<ul>
		<li><a href="policymakers" title="REC Policymakers Homepage" target="_top">Home</a></li>
		<li><a href="policymakers/discussions" target="_top">Discussions</a></li>
		<li><a href="policymakers/library" target="_top">Library</a></li>
		</ul>
	</li>
	<li><a href="discussions" title="Access all REC Discussions" target="_top">Discussions</a>
		<ul>
		<li><a href="discussions/general" target="_top">General</a></li>
		<!--<li><a href="discussions/administrators" target="_top">Administrators</a></li>-->
		<li><a href="discussions/teachers" target="_top">Teachers</a></li>		
		<li><a href="discussions/parents" target="_top">Parents</a></li>
		<li><a href="discussions/policymakers" target="_top">Policymakers</a></li>
		<!--<li><a href="discussions/teacher-educators" target="_top">Teacher-Educators</a></li>-->
		</ul>
	</li>
	<li><a href="library" title="Access the entire REC library" target="_top">Library</a></li>
</ul>


<ul id="identity_block">

{% ifequal user_state "unauthenticated" %}
  <li><a href="{{ login_url }}" target="_top" title="Sign in to the Rwanda Education Commons">Sign In</a></li>
  <li><a href="{{ register_url }}" target="_top" title="Join the Rwanda Education Commons">Join Now!</a></li>
{% endifequal %}

{% ifequal user_state "unregistered" %}
  <li><span class="not_link">Hello, {{ user_email }}</span></li>
  <li><a href="{{ register_url }}" target="_top" title="Join the Rwanda Education Commons">Join Now!</a></li>
{% endifequal %}

{% ifequal user_state "unconfirmed" %}
  <li><span class="not_link">Hello, {{ user_name }}</span></li>
  <li><a href="{{ register_url }}" target="_top" title="Join the Rwanda Education Commons">Join Now!</a></li>
{% endifequal %}

{% ifequal user_state "confirmed" %}
  <li><span class="not_link">You are signed in as {{ user_email }}</span></li>
  <li><a href="{{ logout_url }}" target="_top">Sign Out</a></li>
{% endifequal %}
</ul>

{% ifequal user_state "unregistered" %}
<div class="message_line">
<span class="message">Thank you for signing in. To participate in the discussion boards, please <a href="{{ register_url }}" target="_top">register</a>.</span>
</div>
{% endifequal %}

{% ifequal user_state "unconfirmed" %}
<div class="message_line">
<span class="message">Thank you for filling out the registration form. To complete your registration, please click the confirmation link sent to {{ user_email }}.</span>
</div>
{% endifequal %}

</body>
